package com.init.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 管理员
 * @author Atanycosts
 * @TableName admin
 */
@TableName(value ="admin")
@Data
public class Admin implements Serializable {
    /**
     * 管理员编号
     */
    @TableId(type = IdType.AUTO)
    private Integer adminId;

    /**
     * 账号，唯一
     */
    private String adminAccount;

    /**
     * 密码
     */
    private String adminPassword;

    /**
     * 权限
     */
    private String adminRole;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 是否逻辑删除
     */
    private Integer isDelete;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}